#include "StreamContent.h"
#include <MultiWidgets\TextWidget.hpp>

StreamContent::StreamContent(){}

void StreamContent::init(){
	auto b1 = MultiWidgets::create<MultiWidgets::TextWidget>("2");
	b1->setInputFlags(INPUT_SINGLE_TAPS);
    b1->eventAddListener("single-tap", "nextContent", this);
	addChild(b1);
}
	
void StreamContent	::eventProcess(const QByteArray & messageId, Radiant::BinaryData & data){
	
	if(messageId == "nextContent") nextContent();
}

void StreamContent::nextContent(){

	Radiant::BinaryData data;
	//data.write(temp);
	eventSend("nextContent",data);

}